const express = require('express');
const router = express.Router();

router.all('/testdetail', (req, res) => {
    // console.log(req.query)
    let num = req.query.num
    let name_query = req.query.name
    let name_body = req.body.name

    let res_body = {
        "code": 200,
        "msg": "成功",
        "data": {
        }
    }

    if (num=='0'){
        res_body.data={
            "query_value_name" : name_query
        }
    }else{
        res_body.data={
            "body_value_name" : name_body
        }
    }

    res.json(
        res_body
    );
});

module.exports = router;

